﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="InhollandAir.Register" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>InhollandAir - Register</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
    <link href="//fonts.googleapis.com/fonts.googleapis.com/css?family=Open+Sans:300,800" rel="stylesheet" type="text/css" />
	<link href="//fonts.googleapis.com/fonts.googleapis.com/css?family=Oleo+Script" rel="stylesheet" type="text/css" />
	<script src="css/5grid/jquery.js"></script>
	<script src="css/5grid/init.js?use=mobile,desktop,1000px&amp;mobileUI=1&amp;mobileUI.theme=none&amp;mobileUI_titleBarOverlaid=1&amp;mobileUI_titleBarHeight=60&amp;viewport_is1000px=1060&amp;mobileUI_openerWidth=80"></script>
    <noscript>
		<link rel="stylesheet" href="css/5grid/core.css" />
		<link rel="stylesheet" href="css/5grid/core-desktop.css" />
		<link rel="stylesheet" href="css/5grid/core-1200px.css" />
		<link rel="stylesheet" href="css/5grid/core-noscript.css" />
		<link rel="stylesheet" href="css/style.css" />
		<link rel="stylesheet" href="css/style-desktop.css" />
	</noscript>
	<!--[if lte IE 8]><link rel="stylesheet" href="css/ie8.css" /><![endif]-->
	<!--[if lte IE 7]><link rel="stylesheet" href="css/ie7.css" /><![endif]-->
</head>
<body>
    <form id="form1" runat="server">
		<!-- Header Wrapper -->
			<div id="header-wrapper">
				<div class="5grid-layout">
					<div class="row">
						<div class="12u">
							<!-- Header -->
							<header id="header">
								<!-- Logo -->
								<div id="logo">
									<h1><a href="#">InhollandAir</a></h1>
									<span>Where the sky is no limit!</span>
								</div>
								<!-- Nav -->
								<nav id="nav">
									<ul>
										<li><a href="Default.aspx">InhollandAir</a></li>
										<li><a href="PlanBook.aspx">Plan and Book</a></li>
										<li><a href="Corporate.aspx">Corporate</a></li>
										<li class="current_page_item"><a href="Login.aspx">My Air</a></li>
									</ul>
								</nav>
							</header>
						</div>
					</div>
				</div>
			</div>
		
		
		<!-- Main Wrapper -->
			<div id="main-wrapper">
				<div class="5grid-layout">
					<div class="row">
						<div class="12u">

							<!-- Content -->
								<div id="content">
									<article class="last">

										<h2>Join the Air</h2>

										<p>InhollandAir offers a great loyalty program. The more miles you travel, the more discount you recieve.
                                            Booking a commercial or corporate flight through your account automatically adds the Inholland Miles to your account balance.
                                            Not interested in discounts or other  great offers? Registering still saves you several time consuming steps during the booking process.</p>
										
										<h3>Details</h3>
										<div>
                                            <table>
                                                <tr>
                                                    <td>First name</td>
                                                    <td><asp:TextBox runat="server" ID="txtFirstName"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqFirstName" ControlToValidate="txtFirstName" ErrorMessage="Enter your first name."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regFirstName" ControlToValidate="txtFirstName" ValidationExpression="[\w\s,.'-]{1,50}" ErrorMessage="Correct your first name to only contain alphanumerics, white spaces, commas, dots and single quotes."></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Family name</td>
                                                    <td><asp:TextBox runat="server" ID="txtFamilyName"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqFamilyName" ControlToValidate="txtFamilyName" ErrorMessage="Enter your family name."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regFamilyName" ControlToValidate="txtFamilyName" ValidationExpression="[\w\s,.'-]{1,50}" ErrorMessage="Correct your family name to only contain alphanumerics, white spaces, commas, dots and single quotes."></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Birth day (dd-mm-yyyy)</td>
                                                    <td><asp:TextBox runat="server" ID="txtBirthday" TextMode="Date"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqBirthday" ControlToValidate="txtBirthday" ErrorMessage="Enter your birthday."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regBirthday" ControlToValidate="txtBirthday" ValidationExpression="[\d\-]{10}" ErrorMessage="Correct your birthday to this format: dd/mm/yyyy"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Sex</td>
                                                    <td><asp:DropDownList runat="server" ID="ddlSex">
                                                            <asp:ListItem Value="m" Selected="True">Male</asp:ListItem>
                                                            <asp:ListItem Value="f">Female</asp:ListItem>
                                                        </asp:DropDownList></td>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <td>Phone (numbers only)</td>
                                                    <td><asp:TextBox runat="server" ID="txtPhoneNumber" TextMode="Phone"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqPhoneNumber" ControlToValidate="txtPhoneNumber" ErrorMessage="Enter your phone number."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regPhoneNumber" ControlToValidate="txtPhoneNumber"  ValidationExpression="^[\d]{1,14}$" ErrorMessage="Correct your phone number to this format: up to 14 digits."></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Email</td>
                                                    <td><asp:TextBox runat="server" ID="txtEmailAddress" TextMode="Email"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqEmail" ControlToValidate="txtEmailAddress" ErrorMessage="Enter your email address."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regEmail" ControlToValidate="txtEmailAddress" ErrorMessage="Correct your email address to this format: example@provider.com" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Country</td>
                                                    <td><asp:DropDownList runat="server" ID="ddlCountries"/></td>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <td>Postal code</td>
                                                    <td><asp:TextBox runat="server" ID="txtPostalCode"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqPostalCode" ControlToValidate="txtPostalCode" ErrorMessage="Enter your postalcode."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regPostalCode" ControlToValidate="txtPostalCode" ErrorMessage="Correct your postalcode to the following format: up to 12 alphanumerics and white spaces." ValidationExpression="^[\w\s]{1,12}$"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>House number</td>
                                                    <td><asp:TextBox runat="server" ID="txtHouseNumber"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqHouseNumber" ControlToValidate="txtHouseNumber" ErrorMessage="Enter your house number."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regHouseNumber" ControlToValidate="txtHouseNumber" ErrorMessage="Correct your house number to the following format: up to 10 alphanumerics and white spaces." ValidationExpression="^[\w\s]{1,10}$"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Username (4 to 15 alphanumerics)</td>
                                                    <td><asp:TextBox runat="server" ID="txtUsername"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqUsername" ControlToValidate="txtUsername" ErrorMessage="Enter your username."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regUsername" ControlToValidate="txtUsername" ErrorMessage="Correct your username." ValidationExpression="^[\w]{4,15}$"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Password (8 to 99 letters and numbers)</td>
                                                    <td><asp:TextBox runat="server" ID="txtPassword" TextMode="Password"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqPassword" ControlToValidate="txtPassword" ErrorMessage="Enter your password."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regPassword" ControlToValidate="txtPassword" ErrorMessage="Your password does not meet the criteria." ValidationExpression="^(?=.*\d)(?=.*[a-zA-Z]).{8,99}$"></asp:RegularExpressionValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Password (again)</td>
                                                    <td><asp:TextBox runat="server" ID="txtPasswordRepeat" TextMode="Password"/></td>
                                                    <td class="inline-validators">
                                                        <asp:RequiredFieldValidator EnableClientScript="False" runat="server" ID="reqPasswordAgain" ControlToValidate="txtPasswordRepeat" ErrorMessage="Repeat your password."></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator EnableClientScript="False" runat="server" ID="regPasswordAgain" ControlToValidate="txtPasswordRepeat" ErrorMessage="Your password does not meet the criteria." ValidationExpression="^(?=.*\d)(?=.*[a-zA-Z]).{8,99}$"></asp:RegularExpressionValidator>
                                                        <asp:CompareValidator EnableClientScript="False" runat="server" ID="compPassword" ControlToCompare="txtPassword" ControlToValidate="txtPasswordRepeat" ErrorMessage="Password not repeated correctly."></asp:CompareValidator>
                                                    </td>
                                                </tr>
                                            </table>
                                            <div>
                                                <asp:ValidationSummary runat="server" ID="valSummary" DisplayMode="BulletList" EnableClientScript="True"/>
                                                <asp:Label runat="server" ID="lblRegistrationOutput"></asp:Label>
                                            </div>
                                            <p class="accept-eula">Klik op "Ik ga akkoord" om de InhollandAir-serviceovereenkomst en privacyverklaring te accepteren.</p>
                                            <asp:Button runat="server" ID="btnCompleteRegistration" Text="Ik ga akkoord" CssClass="button button-icon" OnClick="BtnCompleteRegistrationClick"/>
										</div>

									</article>
								</div>

						</div>
					</div>
				</div>
			</div>

		<!-- Footer Wrapper -->
			<div id="footer-wrapper">
			    <footer id="footer" class="5grid-layout">
				    <div class="row">
					    <div class="3u">
						    <!-- Links -->
							<section>
								<h2>Industry News</h2>
								<ul class="style2">
									<li><a href="#">• Stocks Air Indonesia drop 29%</a></li>
									<li><a href="#">• Helsinki opens third airport</a></li>
									<li><a href="#">• Fokker show A380 competitor</a></li>
									<li><a href="#">• Boeing battery issues finally solved?</a></li>
									<li><a href="#">• Former captain turns whistleblower</a></li>
								</ul>
							</section>
					    </div>
					    <div class="3u">
						    <!-- Links -->
							<section>
								<h2>Latest offers</h2>
								<ul class="style2">
									<li><a href="#">• Rio de Janeiro</a></li>
									<li><a href="#">• Moscow</a></li>
									<li><a href="#">• New York</a></li>
									<li><a href="#">• Eastern Island</a></li>
									<li><a href="#">• Tokyo</a></li>
								</ul>
							</section>
					    </div>
					    <div class="3u">
						    <!-- Links -->
					    </div>
					    <div class="3u">
						    <!-- Contact -->
							<section class="widget-contact last">
								<h2>Contact Us</h2>
								<ul>
									<li><a href="http://twitter.com/" class="twitter">Twitter</a></li>
									<li><a href="http://facebook.com/" class="facebook">Facebook</a></li>
									<li><a href="https://plus.google.com/" class="googleplus">Google+</a></li>
								</ul>
								<p>Bergerweg 200 #A323<br />
								1817MN, Alkmaar<br />
								+31(0)72-1234567</p>
							</section>
					    </div>
				    </div>
				    <div class="row">
					    <div class="12u">
						    <div id="copyright">
							    &copy; InhollandAir. All rights reserved. | Images through: <a href="Default.aspx">InhollandAir Group Photography</a> | Design by: <a href="#">Jens Kloes & Michael Vlaar</a>
						    </div>
					    </div>
				    </div>
			    </footer>
			</div>
    </form>
	</body>
</html>
